package nl.ceasaro.poker.stats.mvc;

import nl.ceasaro.poker.ranking.PokerRanker;

/**
 * Created by Zerg.
 * User: cees
 * Date: May 29, 2007
 * Time: 12:40:12 AM
 *
 * @todo Document this class
 */
public class RankCounter
{
   private PokerRanker.PokerRank rank;
   private int count = 0;
   private int percentage = 0;
   private double probability = 0;

   public RankCounter(PokerRanker.PokerRank rank, int count)
   {
      this.rank = rank;
      this.count = count;
   }

   public PokerRanker.PokerRank getRank()
   {
      return rank;
   }

   public void setRank(PokerRanker.PokerRank rank)
   {
      this.rank = rank;
   }

   public int getCount()
   {
      return count;
   }

   public void setCount(int count)
   {
      this.count = count;
   }

   public void turf()
   {
      this.count++;
   }

   public int getPercentage()
   {
      return percentage;
   }

   public void setPercentage(int percentage)
   {
      this.percentage = percentage;
   }

   public double getProbability()
   {
      return probability;
   }

   public void setProbability(double probability)
   {
      this.probability = probability;
   }

   public int getProbabilityPercentage()
   {
      return (int) (probability * 100);
   }
}
